package Code.IfElseDemo;

import java.util.Scanner;

//商品付款
public class Test2 {
    public static void main(String[] args) {
        //定义商品价格
        int price = 600;
        //键盘录入自己的金额
        Scanner sc = new Scanner(System.in);
        System.out.println("输入金额：");
        int money = sc.nextInt();

        //判断
        if (money >= price){
            System.out.println("付款失败");
        }else {
            System.out.println("付款失败");
        }
    }
}
